/**
 * Copyright (C) 2011 Denatics Development
 *
 * Programmed by David Tiersch <dtiersch@denatics.com>
 *
 * This file is part of B0mberman.
 *
 * B0mberman is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * B0mberman is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with B0mberman. If not, see <http://www.gnu.org/licenses/>.
 */
package com.denatics.bomberman.engine;

import java.util.List;

import com.denatics.bomberman.entities.Entity;
import com.denatics.bomberman.sprites.Sprite;

/**
 * This is a readonly-interface where the view can access all relevant
 * informations.
 *
 * @author David Tiersch <dtiersch@denatics.com>
 */
public interface GameAPI {

    /**
     * Returns the Entity that is at the asked position.
     *
     * @param x
     *            x-coordinate
     * @param y
     *            y-coordinate
     * @return requested Entity
     */
    Entity getEntity(int x, int y);

    /**
     * Returns the Sprites that are at the asked position.
     *
     * @param x
     *            x-coordinate
     * @param y
     *            y-coordinate
     * @return requested Sprites
     */
    List<Sprite> getSprites(int x, int y);
}
